package com.winsdom.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户地址表
 * </p>
 *
 * @author 
 * @since 2025-05-12
 */
@Data
@Accessors(chain = true)
@TableName("customer_address")
public class CustomerAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联客户ID
     */
    private Long customerId;

    /**
     * 地址类型: 1-注册地址, 2-办公地址, 3-经营地址
     */
    private Integer addressType;

    /**
     * 区域(["浙江省", "杭州市", "西湖区"])
     */
    private String area;

    /**
     * 区域码(["11", "1101", "110105"])
     */
    private String areaCode;

    /**
     * 详细地址(街道门牌号)
     */
    private String detailedAddress;


}
